package com.gticket.customerbackend.service.impl;

import com.gticket.customerbackend.mapper.LevelMapper;
import com.gticket.customerbackend.pojo.Level;
import com.gticket.customerbackend.service.LevelService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * level的service层的实现类
 */
@Service
@Data
public class LevelServiceImpl implements LevelService {

    @Autowired
    private LevelMapper levelMapper;


    @Override
    public List<Level> listLevels(Level level) {
        return levelMapper.listLevels(level);
    }

    @Override
    public void insertLevel(Level level) {
        levelMapper.insertLevel(level);
    }

    @Override
    public void deleteLevel(Level level) {
        levelMapper.deleteLevel(level);
    }

    @Override
    public void updateLevel(Level level) {
        levelMapper.updateLevel(level);

    }

}
